<?php if($type == 'choice' || $type == 'boolean'): ?>
<select class="table-search-widget" type="<?php echo $type ?>" subtype="<?php echo $subtype ?>" name="<?php echo $column; ?>" relationName="<?php echo $relationName; ?>"
        <?php echo $javascriptEvent ?>="$(this).TableRequestsHandler()"
>
    <option value=""> - </option>
    <?php if($type == 'boolean'): ?>
      <option value="1"><?php echo __('yes'); ?> </option>
      <option value="0"><?php echo __('no'); ?> </option>
    <?php else: ?>
      <?php foreach($options as $key => $option): ?>
        <option value="<?php echo $option['id']?>"><?php echo $option['name']?></option>
      <?php endforeach; ?>
    <?php endif; ?>
  </select>
<?php elseif($type == 'text'): ?>
  <?php if($subtype == 'date'): ?>
    <div class="table-search-widget datapicker-wrapper" type="<?php echo $type ?>" subtype="<?php echo $subtype ?>" name="<?php echo $column; ?>">
      <input class="datepicker" type="date_from" <?php echo $javascriptEvent ?>="$(this).TableRequestsHandler()" />
      <span> - </span> 
      <input class="datepicker" type="date_to" <?php echo $javascriptEvent ?>="$(this).TableRequestsHandler()" />
    </div>
  <?php else: ?>
   <input class="table-search-widget" type="<?php echo $type ?>" subtype="<?php echo $subtype ?>" name="<?php echo $column; ?>" <?php echo $javascriptEvent ?>="$(this).TableRequestsHandler()" />
  <?php endif; ?>
<?php endif;?>